package cn.iocoder.yudao.module.ems.dal.mysql.warehousing;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.ems.dal.dataobject.warehousing.WarehousingDO;
import cn.iocoder.yudao.module.ems.dal.dataobject.warehousing.WarehousingInfoDO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;

/**
 * 入库记录 Mapper
 *
 * @author dason
 */
@Mapper
public interface WarehousingInfoMapper extends BaseMapperX<WarehousingInfoDO> {

    default List<WarehousingInfoDO> selectList(Long warehousing_id) {
        return selectList(new LambdaQueryWrapperX<WarehousingInfoDO>()
                .eqIfPresent(WarehousingInfoDO::getWarehousingId, warehousing_id));
    }

}
